﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ledict.ConditionExtract.Model
{
    public class ComResult
    {
        public result1 result { get; set; }

        public body1 body { get; set; }
    }

    public class result1
    {
        /// <summary>
        ///   操作结果状态码 1:成功 0:失败
        /// </summary>
        public string code { get; set; }

        /// <summary>
        ///   状态码对应的信息(一般错误信息)
        /// </summary>
        public string message { get; set; }
    }

    public class body1
    {
        public string content { get; set; }
    }

    /// <summary>
    /// 请求类
    /// </summary>
    public class RequestContent
    {
        /// <summary>
        /// 系统名称（必填）
        /// </summary>
        public string systemName { get; set; }


        /// <summary>
        /// 模块名称（必填）
        /// </summary>
        public string moudleName { get; set; }

        /// <summary>
        /// 文件类型（必填）
        /// </summary>
        public string fileType { get; set; }

        /// <summary>
        /// 文件名称（必填，不含后缀）
        /// </summary>
        public string fileName { get; set; }

        /// <summary>
        /// 文件内容（必填）
        /// </summary>
        public string content { get; set; }
    }

    /// <summary>
    ///词库数据应用接口请求类
    /// </summary>
    public class RequestWord
    {
        /// <summary>
        /// 需要分词的内容
        /// </summary>
        public string content { get; set; }


        /// <summary>
        /// 案由编码
        /// </summary>
        public string caseCauseCode { get; set; }

        /// <summary>
        /// 行业编码
        /// </summary>
        public string industryCode { get; set; }

        /// <summary>
        /// 是否需要分词
        /// </summary>
        public string isSegment { get; set; }
        
    }

    /// <summary>
    /// 词库数据应用接口返回类
    /// </summary>
    public class WordResult
    {
        public result1 result { get; set; }

        public List<thesaurusModel> body { get; set; }
    }

    /// <summary>
    /// 获取同义词接口返回类
    /// </summary>
    public class WordResultTYC
    {
        public result1 result { get; set; }

        public List<thesaurs> body { get; set; }
    }

    /// <summary>
    /// 获取同义词接口返回类
    /// </summary>
    public class WordResultWord
    {
        public result1 result { get; set; }

        public List<string> body { get; set; }
    }


    public class thesaurs
    {
        public string word { get; set; }
        public List<thesaurusWro> thesaurusWrods { get; set; }
    }

    public class thesaurusWro
    {
        public string thesaurusWrod { get; set; }
    }

    /// <summary>
    /// 同义词
    /// </summary>
    public class thesaurusWrodModel
    {
        /// <summary>
        /// 同义词
        /// </summary>
        public String thesaurusWrod { get; set; }

        /// <summary>
        /// 同义词类型
        /// </summary>
        public int type { get; set; }

        /// <summary>
        /// 案由编码
        /// </summary>
        public String caseCauseCode { get; set; }

        /// <summary>
        /// 行业编码
        /// </summary>
        public String industryCode { get; set; }

        /// <summary>
        /// 词义编号
        /// </summary>
        public String wordMeanId { get; set; }

        /// <summary>
        /// 同义词名称
        /// </summary>
        public string thesaurusWrodA { get; set; }

        /// <summary>
        /// 同义词词义编号
        /// </summary>
        public string wordBMeanId { get; set; }
    }
    //public class bodyModel
    //{
    //    /// <summary>
    //    /// 分词集合
    //    /// </summary>
    //    public List<thesaurusModel> thesaurusModels { get; set; }
    //}

    /// <summary>
    /// 分词结果
    /// </summary>
    public class thesaurusModel
    {
        /// <summary>
        /// 分词
        /// </summary>
        public String segmentWord { get; set; }

        /// <summary>
        /// 是否属于停用词
        /// </summary>
        public String isStopWord { get; set; }

        /// <summary>
        /// 禁用词集合
        /// </summary>
        public List<wordModel> forbiddenWords { get; set; }

        /// <summary>
        /// 同义词集合
        /// </summary>
        public List<thesaurusWrodModel> thesaurusWrods { get; set; }

    }

    public class wordModel
    {
        /// <summary>
        /// 禁用词
        /// </summary>
        public List<String> word { get; set; }
    }
}
